package com.siyu.basedata.pptnrsence.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.siyu.basedata.pptnrsence.mapper.PptnRSenceMapper;
import com.siyu.basedata.pptnrsence.domain.PptnRSence;
import com.siyu.basedata.pptnrsence.service.IPptnRSenceService;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.siyu.basedata.pptnrsence.mapper.PptnRSenceMapper;
import com.siyu.basedata.pptnrsence.domain.PptnRSence;
import com.siyu.basedata.pptnrsence.service.IPptnRSenceService;

/**
 * 情景降雨数据Service业务层处理
 *
 * @author hrhy
 * @date 2024-07-04
 */
@Service
public class PptnRSenceServiceImpl extends ServiceImpl<PptnRSenceMapper, PptnRSence> implements IPptnRSenceService {
    @Autowired
    private PptnRSenceMapper pptnRSenceMapper;

    /**
     * 查询情景降雨数据
     *
     * @param id 情景降雨数据主键
     * @return 情景降雨数据
     */
    @Override
    public PptnRSence selectPptnRSenceById(String id) {
        return pptnRSenceMapper.selectPptnRSenceById(id);
    }

    /**
     * 查询情景降雨数据列表
     *
     * @param pptnRSence 情景降雨数据
     * @return 情景降雨数据
     */
    @Override
    public List<PptnRSence> selectPptnRSenceList(PptnRSence pptnRSence) {
        return pptnRSenceMapper.selectPptnRSenceList(pptnRSence);
    }

    /**
     * 新增情景降雨数据
     *
     * @param pptnRSence 情景降雨数据
     * @return 结果
     */
    @Override
    public int insertPptnRSence(PptnRSence pptnRSence) {
        return pptnRSenceMapper.insertPptnRSence(pptnRSence);
    }

    /**
     * 修改情景降雨数据
     *
     * @param pptnRSence 情景降雨数据
     * @return 结果
     */
    @Override
    public int updatePptnRSence(PptnRSence pptnRSence) {
        return pptnRSenceMapper.updatePptnRSence(pptnRSence);
    }

    /**
     * 批量删除情景降雨数据
     *
     * @param ids 需要删除的情景降雨数据主键
     * @return 结果
     */
    @Override
    public int deletePptnRSenceByIds(String[] ids) {
        return pptnRSenceMapper.deletePptnRSenceByIds(ids);
    }

    /**
     * 删除情景降雨数据信息
     *
     * @param id 情景降雨数据主键
     * @return 结果
     */
    @Override
    public int deletePptnRSenceById(String id) {
        return pptnRSenceMapper.deletePptnRSenceById(id);
    }
}


